package com.zhaorui.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.util.Date;

/**
 * @NotEmpty 用在集合类上面
 * @NotBlank 用在String上面
 * @NotNull 用在基本类型上
 */
@TableName(value = "UserDownLoad")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserDownLoad {
    @ExcelProperty("id")
    @TableId(type = IdType.AUTO)
    private Integer id;
    @ExcelProperty("用户账户")
    private String userName;
    @ExcelProperty("用户密码")
    private String userPass;
    @ExcelProperty("图片")
    private String userPic;
    @ExcelProperty("姓名")
    private String picName;
    @ExcelProperty("身份证号")
    private String userId;
    @ExcelProperty("手机号码")
    private String userPhone;
    @ExcelProperty("会员等级")
    private Integer userLevel;
    @ExcelProperty("注册时间")
    private Date createtime;
    @ExcelProperty("null")
    private Date endtime;
}
